Here we configure NTP for compute resources and set up \NFS{}  mounting of a
\$HOME file system and the public \OHPC{} install path (\texttt{/opt/ohpc/pub})
that will be hosted by the {\em master} host in this  example configuration.

\vspace*{0.15cm}
% begin_ohpc_run
% ohpc_comment_header Customize system configuration \ref{sec:master_customization}
\begin{lstlisting}[language=bash,literate={-}{-}1,keywords={},upquote=true]
# Export /home and OpenHPC public packages from master server
[sms](*\#*) echo "/home *(rw,no_subtree_check,fsid=10,no_root_squash)" >> /etc/exports
[sms](*\#*) echo "/opt/ohpc/pub *(ro,no_subtree_check,fsid=11)" >> /etc/exports
[sms](*\#*) exportfs -a
[sms](*\#*) systemctl restart nfs-server
[sms](*\#*) systemctl enable nfs-server

# Create NFS client mounts of /home and /opt/ohpc/pub on compute hosts
[sms](*\#*) psh compute echo \
        "\""${sms_ip}:/home /home nfs nfsvers=3,nodev,nosuid 0 0"\"" \>\> /etc/fstab
[sms](*\#*) psh compute echo \
        "\""${sms_ip}:/opt/ohpc/pub /opt/ohpc/pub nfs nfsvers=3,nodev 0 0"\"" \>\> /etc/fstab
[sms](*\#*) psh compute systemctl restart nfs

# Mount NFS shares
[sms](*\#*) psh compute mount /home
[sms](*\#*) psh compute mkdir -p /opt/ohpc/pub
[sms](*\#*) psh compute mount /opt/ohpc/pub


# Enable NTP time service on computes and identify master host as local NTP server
[sms](*\#*) psh compute echo "\""server ${sms_ip}"\"" \>\> /etc/ntp.conf
[sms](*\#*) psh compute systemctl enable ntpd
[sms](*\#*) psh compute systemctl start ntpd

\end{lstlisting}
% end_ohpc_run

